{template header.html}
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}<span>|</span><a href="{SYS_HELP_URL}8.html" target="_blank"><em>{lang('help')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
		<font color="gray">{lang('html-065')}</font>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<form action="" method="post" name="myform" id="myform">
		<table width="100%">
		<thead>
		<tr>
			<th width="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
			<th width="40" align="left">Id</th>
			<th width="200" align="left">{lang('html-056')}</th>
			<th align="left" class="dr_option">{lang('option')}</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $t}
		<tr id="dr_row_{$t.id}">
			<td align="right"><input name="ids[]" type="checkbox" class="dr_select" value="{$t.id}" {if $t.id==1}disabled{/if} />&nbsp;</td>
			<td align="left">{$t.id}</td>
			<td align="left">{$t.name}</td>
			<td align="left" class="dr_option">
			{if $this->ci->is_auth('admin/role/auth')}<a class="aadd" {if $t.id==1}href="javascript:;"{else}href="{dr_url('role/auth',array('id' => $t.id))}"{/if}>{lang('html-066')}</a>{/if}
			{if $this->ci->is_auth('admin/root/index')}<a class="alist" href="{dr_url('root/index',array('roleid' => $t.id))}">{lang('html-067')}</a>{/if}
			{if $this->ci->is_auth('admin/role/edit')}<a class="aedit" href="{dr_dialog_url(dr_url('role/edit',array('id' => $t.id)), 'edit')}">{lang('edit')}</a>{/if}
			{if $this->ci->is_auth('admin/role/del')}<a class="adel" href="javascript:;" {if $t.id==1} style="color:#999"{else}onClick="return dr_dialog_del('{lang('015')}','{dr_url('role/del',array('id' => $t.id))}');"{/if}>{lang('del')}</a>{/if}
			</td>
		</tr>
		{/loop}
		<tr>
        	<th align="right"><input name="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
			<td colspan="4" align="left" style="border:none"> 
			{if $this->ci->is_auth('admin/role/del')}<input type="button" class="button" value="{lang('del')}" name="option" onClick="dr_confirm_del_all()" />&nbsp;<div class="onShow"><font color="#FF0000">{lang('html-068')}</font></div>{/if}
			</td>
		</tr>
		</tbody>
		</table>
		</form>
	</div>
</div>
{template footer.html}